package cn.yuanyuan.guide.parser.entity;

import java.util.List;

/**
 *
 *
 * @author wuyitao
 * @date 2022/3/26 11:55 PM
 * @updated 2022/3/26
 */
public class ASTNode extends Node{

    private String name;

    private List<Node> params;

    private List<Node> context;

    public ASTNode() {
    }

    public ASTNode(String type, String value) {
        this.setType(type);
        this.setValue(value);
    }

    public ASTNode(String type, String name, List<Node> params) {
        this.setType(type);
        this.name = name;
        this.params = params;
    }

    public List<Node> getParams() {
        return params;
    }

    public void setParams(List<Node> params) {
        this.params = params;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<Node> getContext() {
        return context;
    }

    public void setContext(List<Node> context) {
        this.context = context;
    }
}
